package com.manage.mapper.single;


import com.manage.model.po.User;
import org.apache.ibatis.annotations.*;


/**
 * 注解mybatis，示例
 * @author duaiyu
 * @version V1.0
 * @date 2022/2/20
 * 来源：自研
 */
@Mapper
public interface TestMapper {
    @Select("select from user where id = #{id}")
    public User getById(String id);

    @Delete("delete from user where id = #{id}")
    public int deleteUserById(String id);

    @Insert("insert into user(name) values(#{name})")
    public int insertUser(User user);

    @Update("update user set name = #{name} where id=#{id}")
    public int updateUser(User user);


}
